

class BaseSpider:
    def getTotalPages(rows, pageSize):
        totalPage = 0;
        if rows > 1:
            totalPage = rows // pageSize
            if rows % pageSize > 0:
                totalPage += 1

        return totalPage;
